unit Unit19;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, Grids, DBGrids, unit2, StdCtrls;

type
  TForm19 = class(TForm)
    DBGrid1: TDBGrid;
    Button1: TButton;
    Button2: TButton;
    procedure FormCreate(Sender: TObject);
    procedure Button2Click(Sender: TObject);
    procedure Button1Click(Sender: TObject);
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form19: TForm19;

implementation
uses
unit20;

{$R *.dfm}

procedure TForm19.FormCreate(Sender: TObject);
begin
DBGrid1.Columns.Items[0].Width:=35;
DBGrid1.Columns.Items[1].Width:=50;
DBGrid1.Columns.Items[2].Width:=50;
DBGrid1.Columns.Items[3].Width:=400;
end;

procedure TForm19.Button2Click(Sender: TObject);
begin
Form19.Close;
end;

procedure TForm19.Button1Click(Sender: TObject);
begin
Application.CreateForm(TForm20, Form20);
Form20.Show;
end;

procedure TForm19.FormClose(Sender: TObject; var Action: TCloseAction);
begin
Action:=caFree;
end;

end.
